﻿using MediatR;
using T.Common.Domain.Common;

namespace RedDragon.RBAC.API.Application.Common.Permission
{
    public class UpdatePermissionsCommand : IRequest<Result>
    {
        /// <summary>
        /// 权限id
        /// </summary>
        public string PermissionId { get; set; }
        /// <summary>
        /// 权限编号
        /// </summary>
        public string PermissionCoding { get; set; }
        /// <summary>
        /// 权限名称
        /// </summary>
        public string PermissionName { get; set; }
        /// <summary>
        /// 权限分类id
        /// </summary>
        public int PermissionTypeId { get; set; }
        /// <summary>
        /// 状态 1-有效；2-无效
        /// </summary>
        public int PermissionState { get; set; }
        /// <summary>
        /// 是否删除 1-未删除；2-删除
        /// </summary>
        public int IsDelete { get; set; } = 1;
        /// <summary>
        /// 路径
        /// </summary>
        public string? URL { get; set; } = null;
        /// <summary>
        /// 创建人
        /// </summary>
        public string? CreatedOwner { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatedTime { get; set; } = DateTime.Now;

        /// <summary>
        /// 修改人
        /// </summary>
        public string? UpdateOwner { get; set; } = null;

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? UpdateTime { get; set; } = null;

        /// <summary>
        /// 审核人
        /// </summary>
        public string? ExamineOwner { get; set; } = null;

        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? ExamineTime { get; set; } = null;
    }
}
